package com.fjp.heartguard.app.weight.pop

import android.content.Context
import android.widget.Button
import com.fjp.heartguard.R
import com.lxj.xpopup.core.CenterPopupView

class AssessmentNoticePop(context: Context, var listener: Listener) : CenterPopupView(context) {
    interface Listener {
        fun onclickStart()
    }

    override fun getImplLayoutId(): Int {
        return R.layout.pop_assessment_notice
    }

    override fun onCreate() {
        super.onCreate()
        findViewById<Button>(R.id.laterBtn).setOnClickListener { dismiss() }
        findViewById<Button>(R.id.startBtn).setOnClickListener {
            listener.onclickStart()
            dismiss()
        }
    }
}